<?php
class MDealPriceForm extends MDeal
{
	public $startField;
	public $endField;
	public $expireField;
	public $redeemStartField;
	public $name;
	
	public function rules()
	{
		return array(
			array('value', 'numerical', 'min' => 1),
			array('price', 'numerical', 'min' => 0),
			array('value,price', 'required'),
		);
	}
	
	public function attributeLabels()
	{
		return array(
			'value' => $this->t('Original Value'),
			'price' => $this->t('Discounted Price'),
		);
	}
	
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}
}